﻿using System;
using System.Collections.Generic;
using System.Text;
using yb.commerce.DAL;
using yb.commerce.Model;

namespace yb.commerce.BLL
{
    public class NewsCommentBusiness
    {
        public bool Add(NewsComment newsComment)
        {
            return new NewsCommentDAO().Add(newsComment);
        }

        public bool Delete(int Id)
        {
            return new NewsCommentDAO().Delete(Id);
        }

        public bool Update(NewsComment newsComment)
        {
            return new NewsCommentDAO().Update(newsComment);
        }

        public NewsComment GetEntity(int Id)
        {
            return new NewsCommentDAO().GetEntity(Id);
        }

        public DataRecordTable GetList(string fieldList, string orderField, bool orderBy, int pageIndex, int pageSize, string where)
        {
            return new NewsCommentDAO().GetList(fieldList,orderField,orderBy,pageIndex,pageSize,where);
        }
        public int GetRecordCount(string where)
        {
            return new NewsCommentDAO().GetRecordCount(where);
        }
        public bool UpdateIsShow(bool isShow, int Id)
        {
            return new NewsCommentDAO().UpdateIsShow(isShow,Id);
        }
    }
}
